/*
 * SPDX-License-Identifier: BSD-3-Clause
 *
 */
#include "board.h"
#include "math.h"
#include "InfoNES_System.h"
#include "InfoNES.h"
#include <string.h>
#include "hpm_uart_drv.h"
#include "hpm_interrupt.h"
#include "hpm_nes_port.h"
#include "tusb.h"


int main(void)
{
    board_init();

    hpm_display_init();
    hpm_audio_init();
    hpm_key_init();

    while (1)
    {      
        if(InfoNES_Load(NULL) == 0) {
            InfoNES_Main();
        }
    }
}
